package com.briup.dao;

import java.util.List;

import com.briup.bean.OrderForm;

/**
 * 订单映射器
 *
 * @author 王若龙
 * @date 2022/09/27
 */
public interface OrderFormMapper {
	/**
	 * 保存订单
	 *
	 * @param of
	 */
	void saveOrderForm(OrderForm of);

	/**
	 * 通过orderid找到订单
	 *
	 * @param orderid orderid
	 * @return {@link OrderForm}
	 */
	OrderForm findOrderFormByOrderid(Integer orderid);

	/**
	 * 找到订单客户id
	 *
	 * @param id id
	 * @return {@link List}<{@link OrderForm}>
	 */
	List<OrderForm> findOrderFormByCustomerId(Integer id);

	/**
	 * 删除订单id
	 *
	 * @param id id
	 */
	void deleteOrderFormById(Integer id);
}
